<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">

<head>
    <title>后台管理系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">
    <link rel="stylesheet" href="../../css/adminFragment.css">
</head>

<body>
<div>
    <div  th:fragment="fragment-name">
        <div style="color: red">亲爱的用户【 <span th:text="${session.userName}"></span> 】，欢迎登陆</div>
        <div style="float: right">
            <!-- 管理员信息管理 -->
            <div class="btn-group">
                <button type="button" class="btn btn-primary">用户</button>
                <button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-expanded="false">
                    <span class="sr-only">Toggle Dropdown</span>
                </button>
                <div class="dropdown-menu">
                    <a class="dropdown-item" th:href="@{/userCon/toChangePassword}">修改密码</a>
                </div>
            </div>
            <!-- 用户信息管理 -->
            <div class="btn-group">
                <button type="button" class="btn btn-success">用户信息管理</button>
                <button type="button" class="btn btn-success dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-expanded="false">
                    <span class="sr-only">Toggle Dropdown</span>
                </button>
                <div class="dropdown-menu">
                    <a class="dropdown-item" href="/userCon/myHouse">我的租房信息</a>
                </div>
            </div>
            <!-- 房源信息管理 -->
            <div class="btn-group">
                <button type="button" class="btn btn-info">房源信息管理</button>
                <button type="button" class="btn btn-info dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-expanded="false">
                    <span class="sr-only">Toggle Dropdown</span>
                </button>
                <div class="dropdown-menu">
                    <a class="dropdown-item" th:href="@{/userCon/toUsersHouse}">我发布的房源</a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="/userCon/toSendHouse">发布房源信息</a>
                </div>
            </div>
            <a type="button" class="btn btn-danger" th:href="@{/breakUser}">退出</a>
        </div>
    </div>
</div>


<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.min.js" integrity="sha384-+sLIOodYLS7CIrQpBjl+C7nPvqq+FbNUBDunl/OZv93DB7Ln/533i8e/mZXLi/P+" crossorigin="anonymous"></script>

</body>

</html>